package com.micro.frog.rbac.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author :  ljh
 * @date : 2018/4/10
 **/
@Controller
public class IndexController {

    /**
     * 后台系统首页
     */
    @RequestMapping("/")
    public String main() {
        return "redirect:/admin/";
    }

    /**
     * consul健康
     */
    @RequestMapping("/health")
    @ResponseBody
    public String health() {
        return "ok";
    }
}
